<!--
Click to redirect -->

< script >

chrome.browserAction.onClicked.addListener(function(tab) {

    var alreadyOpened = null
    var chromeExtURL = "http://www.facebook.com/presence/popout.php"

    chrome.tabs.getAllInWindow(null, function(tabs) {

        for (var i = 0; i < tabs.length; i++) {

            if (tabs[i].url == chromeExtURL) {

                chrome.tabs.update(tabs[i].id, {
                    selected: true
                })

                return;

            }

        }

        chrome.tabs.create({
            url: chromeExtURL,
            selected: true
        })

    })
}) < /script>